package com.alan.libapi.model.persistent;

/**
 * ErrorResponse 错误返回
 * @author JajuanWang
 * @date 2015-09-04 21:20
 * @version V1.0
 */
public class ErrorInfo {

	/**
	 * 错误码
	 */
	private int errorCode;
	
	private String errorMsg;

	public ErrorInfo() {
		super();
	}

	public ErrorInfo(int errorCode, String errorMsg) {
		super();
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	@Override
	public String toString() {
		return "ErrorResponse [errorCode=" + errorCode + ", errorMsg="
				+ errorMsg + "]";
	}
	
	
}
